home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!hpl3sn03.cern.ch
- From: Dan Pop <danpop@mail.cern.ch>
- Newsgroups: comp.lang.c
- Subject: Re: Segmentation fault at return statement. Can't figure out ....
- Date: Sat, 20 Jan 1996 19:29:24 +0100
- Organization: CERN European Lab for Particle Physics
- Message-ID: <9601201829.AA02117@dxmint.cern.ch>
- References: <4dm2n1$egk@murphy.servtech.com> <4dop08$kdi@bcfreenet.seflin.lib.fl.us>
- X-NNTP-Posting-Host: hpl3sn03.cern.ch
- X-Newsreader: NN version 6.5.0 #7 (NOV)
- X-Mail2News-Path: frigate.doc.ic.ac.uk!dxmint.cern.ch!hpl3sn03.cern.ch
-
- z007400b@bcfreenet.seflin.lib.fl.us (Ralph Silverman) writes:
-
- >Avijit Dasgupta (avi@servtech.com) wrote:
- >
- >: test.c:
- >
- >: test()
- >: {
- >
- >: .
- >: ..
- >: .
- >: 83: return(999); <----- Segmentation fault at this stmt.
- >: }
- >
- >--
- >********begin r.s. response*********
- ^^^^^^^^^^^^^^^^^^^
- Very important hint. Without it I would have never figured out where the
- "r.s. response" begins.
-
- > 'test'
- > is likely to be
- > a command of
- > the
- > operating system
-
- So what? There's no possible conflict/interaction between a function
- name in a C program and the name of an OS command.
-
- > 1) look it up.
- > 2) rename yours.
- ^^^^^^^^^^^^^
- Why???
-
- >********end r.s. response***********
- ^^^^^^^^^^^^^^^^^
- See my first comment, above.
-
- Dan
- --
- Dan Pop
- CERN, CN Division
- Email: danpop@mail.cern.ch
- Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-